<?php if (hasPermission("namespaces.object.create.forum")): ?>
	<form action="<?php echo Gene::makeLink($object) ?>/new/forum" method="post">
	
	<fieldset>
	<legend>Create Forum</legend>
	
	<?php if ($draft): ?>
		<input type="hidden" name="draftid" value="<?php echo $draft['draft_id'] ?>" />
	<?php endif; ?>
	
	<p>This will create a new forum where your visitors can create discussions.</p>
	
	<p class="fieldlabel"><label for="forumname">Forum Name:</label></p>
	<p class="field"><input type="text" id="forumname" name="objtitle" class="required" size="24" value="<?php _e($title) ?>" /></p>
	
	<p class="fieldlabel"><label for="forumdesc">Description: <em>(Optional)</em></label></p>
	<p class="fielddescription">List or describe what is discussed in this forum.</p>
	<p class="field"><input type="text" id="forumdesc" name="objdesc" size="64" value="<?php _e($description) ?>" /></p>
	
	<p class="fieldlabel"><label for="formobjcontent">Guidelines or Rules: <em>(Optional)</em></label></p>
	<p class="fielddescription">This will be displayed on the top of the forum page.</p>
	<p class="field"><?php $this->display('objects/enhancedinput') ?></p>
	
	<p class="fieldlabel">Forum Type:</p>
	<p class="field"><label><input type="radio" value="public" checked="checked"> Public Forum (Open to all members)</label></p>
	
	<p class="formcontrols"><input type="submit" value="Add New Forum" class="btn_focus" /></p>
	
	</fieldset>
	
	</form>
<?php endif; ?>